package com.wzy.shirowebdemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wzy.shirowebdemo.mapper.UserMapper;
import com.wzy.shirowebdemo.pojo.User;
import com.wzy.shirowebdemo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public User findByUserName(String username) {
        QueryWrapper<User> param = new QueryWrapper<>();
        param.eq("username",username);
        return userMapper.selectOne(param);
    }
}
